package com.hjt.gulimall.order.feign;

import com.hjt.common.to.member.MemberAddressTo;
import com.hjt.common.utils.R;
import com.hjt.gulimall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author:97007
 * @date:2021/10/9 19:16
 */
@FeignClient(value = "gulimall-member")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/{memberId}/address")
    List<MemberAddressVo> getAddressListByMemberId(@PathVariable("memberId") Long memberId);

    @RequestMapping("/member/memberreceiveaddress/info/{id}")
    R getAddressByAddressId(@PathVariable("id") Long id);
}
